package com.cloud.monitor.sys.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * @author wurj
 * @time 2020/3/12 20:26
 * @description
 */
public interface NodeDataAddMapper {

    @Insert("insert into cpuusage(cpuname,time,usagevalue) values (#{name},#{time},#{value})")
    void addCPUData(@Param("name")String name,@Param("time") String time,@Param("value") String value);

    @Insert("insert into memoryusage(name,time,usagevalue) values (#{name},#{time},#{value})")
    void addMemoryData(@Param("name")String name,@Param("time") String time,@Param("value") String value);

    @Insert("insert into diskusage(name,time,usagevalue) values (#{name},#{time},#{value})")
    void addDiskData(@Param("name")String name,@Param("time") String time,@Param("value") String value);

    @Insert("insert into networkusage(name,time,input,output) values (#{name},#{time},#{invalue},#{outvalue})")
    void addNetWorkData(@Param("name")String name,@Param("time") String time,@Param("invalue") String invalue,@Param("outvalue")String outvalue);

    @Insert("insert into iopsusage(name,time,usagevalue) values (#{name},#{time},#{value})")
    void addIOPSData(@Param("name")String name,@Param("time") String time,@Param("value") String value);
}
